
import http from 'node:http';
import dotenv from "dotenv"
dotenv.config()

const PORT = process.env.PORT || 8002

// Create a local server to receive data from
const server = http.createServer((req,res) => {
    console.log("Hello World")
    res.writeHead(200,{
        'Content-Type': "text/html"
    })
    res.end("<h1>Hello World</h1>");
});


server.listen(PORT,()=>{
    console.log(`Server run on ${PORT}`)
});
